package com.tjoris.bpmstudio;

import com.tjoris.midigateway.IMidiAction;

public class BpmMultipleOnAction extends AbstractBpmOnAction
{
	private final IMidiAction[] fActions;
	
	public BpmMultipleOnAction(final String id, final String name, IMidiAction[] actions)
	{
		super(id, name);
		fActions = actions;
	}
	
	public boolean isVariable()
	{
	    return false;
	}
	
	public void performAction(final int value)
	{
		for (int i = 0; i < fActions.length; ++i)
		{
			fActions[i].performAction(true, 0);
		}
	}
}
